package com.anbang.website.vo;

import java.util.Map;

import com.google.common.collect.Maps;

public class ResData {
	/**
	 * 操作成功
	 */
	public static final String RES_CODE_SUCCESS = "0000";
	
	/**
	 * 登录失败
	 */
	public static final String RES_CODE_SIGN_ERROR = "9999";
	
	/**
	 * 超时
	 */
	public static final String RES_CODE_TIMESTAMP_EXPIRED = "9998";
	
	/**
	 * 参数类型错误
	 */
	public static final String RES_CODE_PARAM_TYPE_ERROR ="1000";
	
	/**
	 * 参数个数错误
	 */
	public static final String RES_CODE_PARAM_COUNT_ERROR ="1001";
	
	/**
	 * 参数为空错误
	 */
	public static final String RES_CODE_PARAM_NOT_ALLOW_EMPTY ="1002";
	
	/**
	 * 登录失败
	 */
	public static final String RES_CODE_LOGIN_FAILD = "2001";	
	
	/**
	 * 后台保存业务数据失败
	 */
	public static final String RES_CODE_SAVE_FAILD = "2002";	
	
	private String code;
	private String msg;
	private Map<String, Object> data = Maps.newHashMap();
	
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public Map<String, Object> getData() {
		return data;
	}
	public void setData(Map<String, Object> data) {
		this.data = data;
	}

}
